import Http from './Http'
class HomeHttp extends Http{
  static getGmk(){
    return this.request({
      url:'/keyboard/gmk'
    })
  }
  static getSwitchs(){
    return this.request({
      url:'/keyboard/switchs'
    })
  }
  static getBox(){
    return this.request({
      url:'/keyboard/box'
    })
  }
  static getBanner(){
    return this.request({
      url:'/keyboard/banner'
    })
  }
  static getDiscount(){
    return this.request({
      url:'/keyboard/discount'
    })
  }
  static getGroup(){
    return this.request({
      url:'/keyboard/group'
    })
  }
  static getDetail(id){
    return this.request({
      url:`/keyboard/detail?id=${id}`
    })
  }
  static getSearch(keyword){
    return this.request({
      url:`/keyboard/search?keyword=${keyword}`
    })
  }
  static getCart(userName){
    return this.request({
      url:`/user/cart?userName=${userName}`
    })
  }
}
export default HomeHttp